package cn.kust.tarvelService.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 游记管理表
 * </p>
 *
 * @author testjava
 * @since 2022-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Article对象", description="游记管理表")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章标签id")
    private Long tagId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "文章内容")
    private String content;

    @ApiModelProperty(value = "文章浏览量")
    private Long views;

    @ApiModelProperty(value = "文章总字数")
    private Long totalWords;

    @ApiModelProperty(value = "发布，默认0, 0-发布, 1-草稿")
    private Long artStatus;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "文章logo")
    private String imageUrl;

    @ApiModelProperty(value = "逻辑删除")  //默认是0表示未删除  1表示已删除
    @TableLogic  //表示做逻辑删除
    private String isDeleted;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
